package com.yf.tz.enums;

import lombok.Getter;


/**
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Jul 01 16:32:18 CST 2020
 */
@Getter
public enum AccountTypeEnum {


    CEC(0, "存储金"),


    POINT(1, "积分"),

    EXP(2, "经验值");

    int index;
    String value;

    AccountTypeEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return AccountTypeEnum.values()[idx].getValue();
    }

}
